package routers

import (
	"Wc_work/controllers"

	"github.com/astaxie/beego"
)

func init() {
	beego.Router("/", &controllers.MainController{}, "get:ShowLogin;post:HandleLogin")      //默认路由
	beego.Router("/login", &controllers.MainController{}, "get:ShowLogin;post:HandleLogin") //登录页面路由
	beego.Router("/manage", &controllers.MainController{}, "get:ShowManage")                //主管页面路由
	beego.Router("/manage-1", &controllers.MainController{}, "get:ShowManage_1")            //主管页面路由
	beego.Router("/manage/select", &controllers.MainController{}, "get:ShowManageselect")
	beego.Router("/manage-1-1", &controllers.MainController{}, "get:Showaa;post:HandleManage_1") //主管页面路由
	beego.Router("/manage2", &controllers.MainController{}, "get:ShowManage2")                   //主管页面路由
	beego.Router("/manage2/select", &controllers.MainController{}, "get:ShowManage2select")
	beego.Router("/manage3", &controllers.MainController{}, "get:ShowManage3;post:HandleManage3") //主管页面路由
	beego.Router("/manage4", &controllers.MainController{}, "get:ShowManage4")                    //主管页面路由
	beego.Router("/user", &controllers.MainController{}, "get:ShowUser;post:HandleUser")          //员工页面路由
	beego.Router("/user2", &controllers.MainController{}, "get:ShowUser2")                        //员工页面路由
}
